const { ccclass, property } = cc._decorator;

@ccclass
export default class toggleTs extends cc.Component {

    // @property(cc.Node)
    // node_agree: cc.Node = null;
    // @property(cc.Node)
    // node_select: cc.Node = null;
    @property(cc.Node)
    node_giveUp: cc.Node = null;
    @property(cc.Node)
    node_Video: cc.Node = null;


    @property(cc.Node)
    videoIcon: cc.Node = null;
    onLoad() {
        // this.node_agree.on(cc.Node.EventType.TOUCH_END, ()=>{
        //     this.node_select.active = !this.node_select.active;
        //     if(this.node_select.active == true){
        //         this.node_giveUp.active = false;
        //     }else{
        //         this.node_giveUp.active = true;
        //     }
        // }, this);

        //@ts-ignore
        window.__prv.doAction(3, ['ks3']);
        //@ts-ignore
        if (this.videoIcon) {
            //@ts-ignore
            window.__prv.doAction('体力特权/体力补给站页面', ['hw', this.videoIcon]);
        }

    }

    start() {
        //this.node_agree.active = false;
        //@ts-ignore
        window.__prv.doAction(2, ['ks1', this.node_agree, this.node_select, this.node_giveUp, this.node_Video]);
        //@ts-ignore
        window.__prv.doAction(2, ['ks2', this.node_agree, this.node_select, this.node_giveUp, this.node_Video]);
        //@ts-ignore
        //window.__prv.doAction(2, ['ks3', this.node_agree, this.node_select, this.node_giveUp, this.node_Video]);
        //@ts-ignore
        window.__prv.doAction(10, ['ks3', cc.find("content/New Node/videoBtn/AD", this.node), cc.find("content/New Node/videoBtn/icon_sp02", this.node)]);
        //@ts-ignore
        window.__prv.doAction(11, ['ks3', cc.find("content/defineBtn1", this.node)]);
    }

    // update (dt) {}
}
